﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.EntityFrameworkCore;

namespace UtilsORM.MySqlData;

[Index("vr_guid", Name = "idxdclguid")]
[MySqlCharSet("utf8mb3")]
[MySqlCollation("utf8mb3_general_ci")]
public partial class iot_device_model_variable_value_rlue
{
    [Key]
    public long vr_id { get; set; }

    public string vr_guid { get; set; }

    /// <summary>
    /// 规则
    /// </summary>
    [StringLength(255)]
    public string vr_rule { get; set; }

    /// <summary>
    /// 值key
    /// </summary>
    [StringLength(255)]
    public string vr_type { get; set; }

    [Column(TypeName = "datetime")]
    public DateTime vr_add_time { get; set; }

    /// <summary>
    /// 说明
    /// </summary>
    [StringLength(255)]
    public string vr_remark { get; set; }

    [StringLength(255)]
    public string vr_name { get; set; }

    /// <summary>
    /// 变量key
    /// </summary>
    [StringLength(255)]
    public string vr_key { get; set; }

    /// <summary>
    /// 0有效，1无效
    /// </summary>
    public int? vr_status { get; set; }
}
